package expression;

import java.math.BigDecimal;

/**
 * Created by luyajie on 2017/1/3.
 *
 * 是否为数字
 */
@ExpressionAn(common = "A")
public class AExpression implements Expression {
    public Object exec(Object... objs) {
        BigDecimal res = new BigDecimal("0");
        for(int i = 1; i < objs.length; i++) {
            res = res.add(new BigDecimal(objs[i].toString()));
        }
        return res;
    }
}
